package com.example.mapper;

import com.example.entity.UserAction;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-05-31
 */
@Mapper
public interface UserActionMapper extends BaseMapper<UserAction> {
    @Update("UPDATE  file SET downloadcount=downloadcount+1  WHERE  filename=#{filename}")
    void update1(String filename);
    @Update("UPDATE  file SET collectcount=collectcount+1  WHERE  filename=#{filename}")
    void update2(String filename);
}
